    <section id="portfolio" class="section-padding pb-0">
		<div class="container">
			<div class="row">
				<div class="col-lg-12 text-center">
                    <div class="section-title">
                        <h3>最新<span> 项目</span></h3>
                        <span class="line"></span>
                        <p></p>
                    </div>
				</div>
				<!-- end section title -->
				<div class="portfolio-slider owl-carousel owl-theme">
					<?php 

							$args2 = array(
							'orderby' => 'name',
							'order' => 'ASC',
							'hide_empty' => 0,
							'taxonomy' => 'cases', //自定义文章类型名
							'walker' => null
							);
							// $arrarid=get_categories($args2);
							$arrarid=array();
							// echo "630";
							foreach (get_categories($args2) as $key => $value) {
								$arrarid[]=$value->term_taxonomy_id;
							}

// var_dump($arrarid);

  $args = array(
        'post_type' => 'case', //自定义文章类型名称
        'showposts' => 10,
        'tax_query' => array(
            array(
                'taxonomy' => 'cases',//自定义分类法名称
                'terms' => $arrarid//id为64的分类。也可是多个分类array(12,64)
                ),
            )
        );
    $my_query = new WP_Query($args);

if($my_query->have_posts()):while($my_query->have_posts()):$my_query->the_post();

 get_template_part( 'template-parts/case/case_temp_index', get_post_type() );


endwhile;
endif;
// var_dump($my_query);
wp_reset_postdata();
?>
		


					<!-- end single portfolio -->
				</div>
			</div>
		</div>
		<!-- END CONTAINER -->
		<div class="container-fluid no-padding bg-gray promo-portfolio">
			<div class="row">
				<div class="col-lg-12 col-md-12 col-sm-4 col-4 mx-auto text-center">
					<p>有相关的项目要合作? <a class="text-decoration-underline" href="/contact/" target="_blank">点击联系我们吧.</a> 我们已经准备好了 :)</p>
				</div>
			</div>
		</div>
		<!-- END CONTAINER FLUID-->
	</section>
<?php 

    // $main_color=$ifan_option['main-color-rgba']['rgba']??$ifan_option['main-color-rgba']['rgb'];

      echo '<style>


	.portfolio-slider.owl-theme .owl-nav div:hover {
    background: '.$main_color .';
}
      </style>
      '; 
  ?>
